CPP Library

functions...

===============================================

#include <iostream>
using namespace std;

void PressEnterToContinue()
{
int c;
cout << "Press ENTER to continue... ";
cin.sync();
do c = getchar(); while ((c != '\n') && (c != EOF));
}
int main()
{
..double number, ans;
..cout << "Enter a number: ";
..cin >> number;
..ans = number /5;
..cout << "The answer is: "<< ans << endl;
..PressEnterToContinue();
..return 0;
}

================================================